package hibernate.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;


@Entity
@Table(name="eventsparticipating", 
	   uniqueConstraints={@UniqueConstraint(columnNames={"id"})})
public class EventParticipating {
	
	
	
	public EventParticipating() {
		super();
	}

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="id", nullable=false, unique=true, length=11)
	private int id;
	
	@Column(name="event_id", nullable=false)
	private int event_id;
	
	@Column(name="user_id", nullable=true)
	private int user_id;
	
	@Column(name="maybe", nullable=true)
	private Boolean maybe;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getEvent_id() {
		return event_id;
	}

	public void setEvent_id(int event_id) {
		this.event_id = event_id;
	}

	public int getUser_id() {
		return user_id;
	}

	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}

	public Boolean getMaybe() {
		return maybe;
	}

	public void setMaybe(Boolean maybe) {
		this.maybe = maybe;
	}


	
	

	
}
